package a66weding.com.jiehuntong.activity.me;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.RelativeLayout;
import android.widget.TextView;

import a66weding.com.jiehuntong.R;
import a66weding.com.jiehuntong.application.GlobalApplication;
import a66weding.com.jiehuntong.common.utils.CUtils;

/**
 * 这是关于我们界面
 * Created by Administrator on 2016/7/6.
 */
public class MeSetRegardingActivity extends MeBaseActivity implements View.OnClickListener{
    private LinearLayout mBackLay;
    private TextView mBackContentTv;
    private TextView tv_hunqi;
    private TextView mHeaderTitleTv;
    private RelativeLayout mHeaderRightRlay;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_me_set_regarding);
        ((GlobalApplication)getApplication()).getActivityManager().addActivity("MeSetRegardingActivity",this);

        initview();
    }

    private void initview() {
        mBackLay = (LinearLayout) findViewById(R.id.llay_header_back);
        mBackContentTv = (TextView) findViewById(R.id.tv_header_backcontent);
        mHeaderTitleTv = (TextView) findViewById(R.id.tv_header_title);
        mHeaderRightRlay = (RelativeLayout) findViewById(R.id.rlay_header_rightfunc);

        mBackContentTv.setText("设置");
        mHeaderTitleTv.setText("关于我们");

        mHeaderRightRlay.setVisibility(View.GONE);

        mBackLay.setOnClickListener(this);

        tv_hunqi = (TextView) findViewById(R.id.tv_hunqi);
        tv_hunqi.setText(CUtils.getAppVersionName());

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.llay_header_back:
                finish();
                break;
        }
    }


}
